<!DOCTYPE html>
<html xmlns:th="http://thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 2 | General Form Elements</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/adminlte/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/adminlte/dist/css/skins/_all-skins.min.css}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body>
<div class="wrapper">
        <!-- Main content -->
        <section class="content">
            <div class="container" style="margin-right: 100px">
                        <form role="form" th:action="@{/product/product_add}" method="post" th:object="${product}" enctype="multipart/form-data">
                            <div class="box-body">
                                <div class="form-group">
                                    <label>商品名称</label>
                                    <input type="hidden" name="pId" th:field="*{pId}">
                                    <input type="hidden" name="dictionaryid" th:field="*{dictionaryid}">
                                    <input type="text"  name="name" th:field="*{productName}" class="form-control" >
                                </div>
                                <div class="form-group">
                                    <label>商品价格</label>
                                    <input type="text"  name="money" th:field="*{money}" class="form-control" >
                                </div>
                                <div class="form-group">
                                    <label>商品详情</label>
                                    <textarea type="text" name="content"th:field="*{content}"></textarea>
                                </div>
                                <div class="form-group">
                                    <label>商品库存</label>
                                    <input type="text"  name="num" th:field="*{num}" class="form-control" >
                                </div>
                                <div class="form-group">
                                <label>是否打折</label>
                                <input type="text"  name="dazhe" th:field="*{dazhe}" class="form-control" >
                            </div>
                                <label>请选择替换的图片</label>
                                <input type="file" name="file" value="浏览"><br/>
                            </div>
                            <input type="submit" value="提交">
                        </form>
            </div>
        </section>
</div>

<!-- jQuery 3 -->
<script  th:src="@{/adminlte/bower_components/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 3.3.7 -->
<script  th:src="@{/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
<!-- FastClick -->
<script  th:src="@{/adminlte/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script  th:src="@{/adminlte/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script  th:src="@{/adminlte/dist/js/demo.js}"></script>

</body>
</html>
